%
% getData(name) : returns the data, index and breakpoints for a specified 
%                 person.
%
% arguments:      name - 'String' valued variable that specifies which
%                         human dataset to return
%
% return values : ret.data - raw human dataset
%                 ret.index - index values of desired vectors from raw data
%                 ret.brkpts - pre-determined index values of the domain
%                              breakpoints
%

function ret = getData(name)

switch name
    case 'Fred'
        load 'Data_fred.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [59 208 242 268 316 484 514 534 550 582];
        ret.brkpts = [59 208 242 268 316 484 514 550 579 582];
%         ret.sns_brk = [59 242 514 582];
        ret.sns_brk = [59 246 517 582];
        ret.weight = 200;
        
        
    case 'Po'
        load 'Po.mat';
        ret.data = Po;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [1 187 221 267 289 446 460 496 520 526];
        ret.sns_brk = [1 221 460 526]; 
        ret.weight = 132;
        
        
    case 'Ayushi'
        load 'Ayushi.mat';
        ret.data = Ayushi;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [1 160 234 250 255 398 467 484 497 498];
%         ret.sns_brk = [1 234 467 498];  
        ret.brkpts = [1 160 215 250 255 398 433 484 497 498];
%         ret.sns_brk = [1 215 433 498];
        ret.brkpts = [1 237 469 498];

        ret.weight = 118;
        
      case 'AyushiS'
        load 'AyushiS.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [1 160 234 250 255 398 467 484 497 498];
%         ret.sns_brk = [1 234 467 498];  
%         ret.brkpts = [1 160 215 250 255 398 433 484 497 498];
        ret. brkpts = [];
        ret.sns_brk = [1 537 862 2611];    

        ret.weight = 118;    
        
    case 'Charles'
        load 'Charles.mat';
        ret.data = Charles;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [1 126 216 281 284 450 486 532 545 546];
%         ret.sns_brk = [1 216 486 546];
        ret.sns_brk = [1 206  478  546];
        ret.weight = 185;
        
    case 'Martin'
        load 'Martin.mat';
        ret.data = Martin;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [1 228 259 296 325 514 529 570 602 603];
%         ret.sns_brk = [1 259 529 603];
        ret.sns_brk = [1 241 536  603];
        ret.weight = 152;
        
    case 'MartinS'
        load 'MartinS.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [1 228 259 296 325 514 529 570 602 603];
        ret.brkpts = [];
        ret.sns_brk = [1 274 613 2729];
        ret.weight = 152;
        
    case 'Ram'
        load 'Ram.mat';
        ret.data = Ram;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [150 234 320 386 417 558 609 627 658 659];
%         ret.sns_brk = [150 320 609 659]; 
%         ret.sns_brk = [150 348 570 659];%
        ret.sns_brk = [150 341  612 659]; %612
        ret.weight = 130;
        
        
   case 'RamS'
        load 'RamS.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [150 234 320 386 417 558 609 627 658 659];
%         ret.sns_brk = [150 320 609 659]; 
        ret.brkpts = [];
        ret.sns_brk = [1 91 586 1101];
        ret.weight = 130;
            
    case 'Ruz'
        load 'Ruz.mat';
        ret.data = Ruz;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [1 281 244 361 361 551 535 629 629 630];
        ret.sns_brk = [1 244 551 630];
        ret.weight = 140;
        
        
     case 'RuzS'
        load 'RuzS.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [1 281 244 361 361 551 535 629 629 630];
        ret.brkpts = [];
        ret.sns_brk = [1 324 669 2029];
        ret.weight = 140;
        
     case 'PoS'
        load 'PoS.mat';
        ret.data = AveDataAll;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
%         ret.brkpts = [1 281 244 361 361 551 535 629 629 630];
        ret.brkpts = [];
        ret.sns_brk = [1 204 572 2177];
        ret.weight = 130;
        
    case 'Selina'
        load 'Selina.mat';
        ret.data = Selina;
        ret.index = [0 1 4 5 6 13 14 20 21 22 23 24 25 26 27 28 29 30 31];
        ret.brkpts = [75 171 275 315 337 514 524 573 609 610];
       % ret.sns_brk = [75 275 524 610];
        ret.sns_brk = [75 263 537  610];
        ret.weight = 105;
        
        
   % new human data (4)
%     case 'hum'
%         load 'hum.mat';
%         ret.data = AveDataAll;
%         ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
%         ret.brkpts = [];
%         ret.sns_brk=[126   320   699   949];
%         ret.weight = 165;
        
     case 'lily'
        load 'lily.mat';
        ret.data = AveDataAll;
        ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
        ret.brkpts = [96 300 323 374 420 649  659  709  747];
%         ret.sns_brk=[27 362  686  1007];
%         ret.sns_brk = [1 343 659 1007];
%         ret.sns_brk = [96 323  659  747];
        ret.sns_brk = [96 311  659 747];
        ret.weight = 125;
        
%       case 'mar'
%         load 'mar.mat';
%         ret.data = AveDataAll;
%         ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
%         ret.brkpts = [];
%         ret.sns_brk=[60   374   638   941];
%         ret.weight = 104;
        
%       case 'phil'
%         load 'mar.mat';
%         ret.data = AveDataAll;
%         ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
%         ret.brkpts = [];
%         ret.sns_brk=[80   410   685   955];
%         ret.weight = 185;
        
      case 'po'
        load 'po.mat';
        ret.data = AveDataAll;
        ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
        ret.brkpts = [49 228 230 285 322 509  515  554  588];
%         ret.sns_brk=[12   269   516   795];
%         ret.sns_brk=[49   230   515   588];
        ret.sns_brk = [49  251 522 588];
        ret.weight = 130;
        
%       case 'ric'
%         load 'ric.mat';
%         ret.data = AveDataAll;
%         ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
%         ret.brkpts = [];
%         ret.sns_brk=[38   396   687   933];
%         ret.weight = 190;
        
      case 'ryan'
        load 'ryan.mat';
        ret.data = AveDataAll;
        ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
        ret.brkpts = [67 107 253 317 333 370  527 577 620];
%         ret.sns_brk=[67   317   577   620];
        ret.sns_brk = [67  302  575  620];
        ret.weight = 200;
        
       case 'vic'
        load 'vic.mat';
        ret.data = AveDataAll;
        ret.index = [13, 6, 9, 5, 14, 8, 7, 20, 21, 24, 23, 22, 25, 26, 27, 28, 31, 30, 29];
        ret.brkpts = [141 146 179 239 451 452 507  543  737];
%         ret.sns_brk= [141 146 452 737]; %%%
        ret.sns_brk= [141 453 751 1000];
%         ret.sns_brk = [141 110  453 737];
%         ret.sns_brk=[190  496  764  1069];
        ret.weight = 150;
        
    otherwise
        ret = NaN;
end

        